package com.finesys.backend.common.utils;

public class HttpStatusCodes {
	public static final Integer OK = 200;                   //get 成功后会获得
	public static final Integer CREATED = 201;              //[POST/PUT]：用户新建或修改数据成功。
	public static final Integer NO_CONTENT = 204;           //用户删除数据成功。以及查询不到数据时
	public static final Integer BAD_REQUEST = 400;          //参数错误
	public static final Integer UNAUTHORIZED = 401;         //用于提示用户名、密码错误
	public static final Integer PAYMENT_REQUIRED = 402;
	public static final Integer NOT_FOUND = 404;            //找不到对应资源
	public static final Integer UNPROCESSABLEENTITY = 422;  //字段缺失或者参数格式化有问题
	public static final Integer AUTH_NOTVALID_TOKEN  = 499; //非法的toekn,签名错误
	public static final Integer SERVERERROR = 500;

	//添加数据错误,数据已经存在
	public static final Integer PUBLISH_DATA_EXIST = 600;   //要添加的数据已经存在
	//要删除的数据不存在
	public static final Integer PUBLISH_DATA_NOT_EXIST = 601;   //要删除的数据不存在

	public static final Integer SYSTEMERROR = 999;
}
